<?php
	
$title = '首页';

$css = 'index';

	
	$cate = dbselect($con,'category');

	$about = dbselect($con,'about_us');

	$news = dbselect($con,'news','title,create_time,remark,category_id,id','home=1','create_time desc','0,3');

	foreach($news as $k => $val){
		$news[$k]['day_time'] = date('d',$val['create_time']);
		$news[$k]['Ym_time'] = date('Y-m',$val['create_time']);
	}

	//banner图查询
	$banner = dbselect($con,'banner','*',"cate_id='{$hid}' and status = 1",'create_time desc','3');

	include("application/home/views/public/header.html");

	include("application/".M."/views/".C."/".V.".html");

	include("application/home/views/public/footer.html");
	
	
	
?>